import {
	my_request
} from '@/util/request.js'
import {
	URL_PREFIX
} from '@/util/constant.js'
// 获取投递进度表头

export function gettoudi() {
	return my_request('/application/registration/header', {
		method: 'get',
	})
}
// 字典查询下拉款
export function getselect(data) {
	return my_request('/dict/type/'+data, {
		method: 'get',
	})
}
export function getselects(data) {
	return my_request('/dict/type/'+data, {
		method: 'get',
	})
}
// 招聘职位
export function getlist(data) {
	return my_request('/application/position/list', {
		method: 'GET',
		data: data,
	})
}
// 投递日志信息
export function registrationLog(params) {
	return my_request('/application/registrationLog/list', {
		method: 'get',
		data:params
	})
}
// 投递进度
export function getlistRegistration(data) {
	return my_request('/application/registration/list', {
		method: 'get',
		data: data,
		
	})
}
// 修改职位信息
export function editRegistration(data) {
	return my_request('/application/registration', {
		method: 'put',
		data: data,
		
	})
}
// 招聘职位详情
export function getposition(data) {
	return my_request('/application/position/'+data, {
		method: 'get',
	})
}
// 查公司信息
export function homeConfiguration() {
	return my_request('/application/baseContent/listAll?baseTitle=home_pic', {
		method: 'get',
	})
}
// export function homeConfiguration() {
// 	return my_request('/application/homeConfiguration/list', {
// 		method: 'get',
// 	})
// }


//获取公司公告列表
export function companyAnnouncement(data) {
	return my_request('/application/companyAnnouncement/list', {
		method: 'get',
		data: data,
	})
}
//获取公司公告列表
export function companyAnnouncementDetail(data) {
	return my_request('/application/companyAnnouncement/'+data, {
		method: 'get',
	})
}
// 查公司详细信息


// 投递信息 投递简历
export function registration(data) {
	return my_request('/application/registration', {
		method: 'post',
		data:data
	})
}

// 收藏简历
export function collection(data) {
	return my_request('/application/collection', {
		method: 'post',
		data:data
	})
}
//文件上传接口
export function ossUpload(data) {
	return my_request('/application/oss/upload', {
		method: 'post',
		data:data
	})
}